package com.example.springalibabacloudclient;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableOAuth2Client;

@SpringBootApplication
@EnableOAuth2Client

//开启feign包扫描
@EnableFeignClients(basePackages = { "com.example.springalibabacloudclient.feign" })
public class SpringAlibabaCloudClientApplication {

    /**
     * 将会集成: feign hystix  ribbon
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(SpringAlibabaCloudClientApplication.class, args);
    }

    /**
     * 动态取值:
     * 整个类上加上这个注解: @RefreshScope
     * @Value("${test.value}") 即可动态从配置中心里面取值
     */



}
